package com.lcy.web.bean

import org.hibernate.validator.constraints.NotBlank
import javax.validation.constraints.Min
import javax.validation.constraints.NotNull

/**
 * @author loucy
 * @version 1.0
 */
data class User (
        @field:NotNull(message = "{user.name.NotNull}")
        @field:NotBlank
        var name:String? = null,
        @field:Min(value = 0,message = "年龄最小值为 0") var age:Int = 0)